|
|
|
The mandatory type attribute provides information about the intent of the element, helping to improve processing. If the Web browser does not recognize the specified type, the specified type is treated as unknown. For example, testing, experimental, and vendor specific types would be unknown.
<do> tags are rendered as centered softkey labels on the bottom display line. <do> tags are specified per WML page and therefore are page context-sensitive. <do> tags with an unspecified name attribute default to the <type> attribute value. A <do> tag with a <noop> tag embedded within renders the <noop> on a softkey, but pressing that softkey has no effect. The eight “do” types are labeled either specifically in a WML page or by a browser-dependent label.
If no labels are given, then the “do” types have the following default labels:
If no <do> tags were specified, no softkeys display:
| Home |
Refresh |
Stop |
|
If one <do> tag was specified, these softkeys display:
| 1st DO |
Refresh |
Stop |
Home |
If multiple <do> tags are specified, display them as follows:
| 1st DO |
2nd DO |
3rd DO |
MORE |
| 1st DO |
2nd DO |
3rd DO |
MORE |
| 4th DO |
5th DO |
Etc. |
MORE |
NOTE: If more than one page of softkey labels are specified, pressing the MORE softkey automatically presents the user with the next page of labels. If the last page displays and the user presses the MORE softkey, the first page of labels displays. As implied in the examples, the Softkey buttons are labeled in sequential order of the <do> tags. When an image tag exists inside a <do> tag, and the attempt to retrieve the image through HTTP fails, the <do> tag label displays as the softkey label.
To render JPEG or WBMP images in the softkey label area, embed <img> tags in the <do> tag. For example:
<do type="example-accept" label="SK1"> <go href="example-#card2"/> <img src="x.jpg"/> <do>
To render JPEG or WBMP images in the softkey area, use the CSS2 property background-image with a <do> tag. The example that follows shows a <do> tag with embedded images. Notice that the <do> tag has an image that does not completely fit in Softkey 3. The default background color shows where the image does not cover the softkey label area.
The default value of “No image” is used for the Alt text when the image cannot be loaded on a softkey.
The template element creates code that is inserted into all cards in a single deck. The nested tags are: go, noop, prev, and refresh. There are no visual implications for supporting the <onevent> tag. If there is more than one <onevent> tag defined with the same type in a deck/card, then only the last <onevent> tag will be rendered. Specifying more than one <onevent> tag inside an <anchor> tag is an error.
| Attribute |
Value |
Description |
Comments |
|---|---|---|---|
| name |
cdata |
REQUIRED. The name of the field. |
SUPPORTED. |
| value |
cdata |
REQUIRED. The value of the field. |
SUPPORTED. |
|
|
|